package top.lshaci.learning.alibaba.cloud.seata.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.lshaci.learning.alibaba.cloud.seata.account.entity.Account;

/**
 * AccountService
 *
 * @author lshaci
 * @since 1.0.0
 */
public interface AccountService extends IService<Account> {

    /**
     * 从用户账户中借出
     *
     * @param userId 用户ID
     * @param money  借出金额
     */
    void debit(String userId, int money);
}
